Pergunta de entrevista da empresa Flipkart

explain the logicfirst clearly and go to coding part next