Pregunta de entrevista de Tata Consultancy Services

They asked me DSA based question.