'''
Arguments: node(head of linked list)
Output: data(in reverse order)
-sohailshaukat ( https://github.com/sohailshaukat )
-sohail47k@gmail.com
'''
def reversePrint(head):
    current = head
    stack = []
    while current:
        stack.append(current.data)
        current = current.next
    while stack:
        x = stack.pop()
        print(x)

38f4be5fb232f8d203942e1c15d7abe2fe233cf3
<mask token>

<mask token>


def reversePrint(head):
    current = head
    stack = []
    while current:
        stack.append(current.data)
        current = current.next
    while stack:
        x = stack.pop()
        print(x)

'''
Arguments: node(head of linked list)
Output: data(in reverse order)
-sohailshaukat ( https://github.com/sohailshaukat )
-sohail47k@gmail.com
'''
def reversePrint(head):
    current = head
    stack = []
    while current:
        stack.append(current.data)
        current = current.next
    while stack:
        x = stack.pop()
        print(x)
