Thoughtworks Interview Question

How do you prioritize tasks and manage deadlines?