Oracle Interview Question

Stack operation in O(1) Reverse a group of nodes in linked list