Pregunta de entrevista de Tata Consultancy Services

reverse linked list, reverse string