Infosys Interview Question

one challenge faced and solution suggested