Infosys interview question

How will you handle a task based on situation