Genpact interview question

background