Pregunta de entrevista de Wipro

reverse a linked list and a question based on sorting