Genpact interview question

basic testing