Pregunta de entrevista de Nagarro

The code needs to be explained which was given in the coding round.