Infosys Interview Question

coding based question related to your knowledge