Genpact Interview Question

Tough.