Genpact interview question

Tough.