Pregunta de entrevista de Tata Consultancy Services

About the code attempted in the technical test