Infosys Interview Question

They asked coding implementation from the coding round