Accenture interview question

reasoning