Pregunta de entrevista de Tata Consultancy Services

Explain about the code that I had solved in codevita process.