Genpact Interview Question

I will ry to answer the question.