Flipkart Interview Question

about the prioblem statementwhihc i have worked on.