Pregunta de entrevista de Flipkart

explain the logicfirst clearly and go to coding part next