Infosys Interview Question

They asked problem solving and coding