Pregunta de entrevista de Capgemini

Explain the algorithm of code you used in coding round