Infosys Interview Question

Didnt find anything difficult. It was smooth