Accenture Interview Question

Difficult case from a totally different domain