Infosys Interview Question

This round is purely based on coding