Update remove duplicates from linked list ii.java