Pergunta de entrevista da empresa Tata Consultancy Services

Explain the code which you solved in Codevita