Infosys Interview Question

Most questions are fairly straightforward