Pregunta de entrevista de Tata Consultancy Services

Coding question, where they will focus more.