Infosys Interview Question

Typical technical interview.