Thanksgiving Sale: Use Coupon Code THANKS25 to Get Extra 25% Off.
current to the head of the list.current and current.next are not null:
a. If current.val is equal to current.next.val, set current.next to current.next.next to remove the duplicate.
b. Otherwise, move current to the next node.