Accenture interview question

Difficult case from a totally different domain