Genpact interview question

basic technical questio