• + 0 comments

    This is my solution

    let arr = []

    while(llist!= null) {
        arr.push(llist.data)
        llist = llist.next
    }
    
    while(positionFromTail > 0) {
        arr.pop()
        positionFromTail--
    }
    
    return arr[arr.length-1]