def traverse_list(head):
    """Prints every element from head to tail"""
    if head is None:
        return -1
    curr = head
    print_list = []
    while curr:
        print_list.append(curr.data)
        curr = curr.next
    return ' '.join(map(str, print_list))