Merge Two Sorted Linked Lists Hackerrank Solution Java