Implement ruby/singly_linked_list