Genpact interview question

JAM Technical Round