Pregunta de entrevista de Nagarro

Programming round was bit difficult.