Infosys Interview Question

Quite simple