KPIT Technologies interview question

Thinking ability