Genpact interview question

technical