Infosys Interview Question

The methods I used to execute my assignment.