Pregunta de entrevista de Quadcode

How to implement List.reverse() with O(1) complexity?