Pregunta de entrevista de SpanIdea

Write a code to get reverse of list without using temporary variable.