IGATE Interview Question

I didn't find any difficulty in cracking the interview.