Thoughtworks interview question

How do you prioritize tasks and manage deadlines?