Accenture interview question

Handling the situations