pushing the Python version of reverse linked list II