title: copying items from one single linked list to another
body: <p>I've just started learning about linked lists and need help with this piece of code. I need to write a method that copies all the items from one single linked list to another.
  Any help would be appreciated. Thanks.</p>
  
  <pre><code>public static ListNode copy(ListNode list){
      //code
  } 
  </code></pre>