Pregunta de entrevista de Surya Software

Second DSA question was reverse linked list. They asked just to explain in psudeo code.