class ListNode:
    def __init__(self, val=0, next=None):
        self.val = val
        self.next = next

def removeNthFromEnd(head, n):




head = [1,2,3,4,5]
n = 2

nodeList = []
prev = None
for num in reversed(head):
    newNode = ListNode()
    nodeList.append()
