Pergunta de entrevista da empresa Capgemini

Explain the algorithm of code you used in coding round