Distinct Values

Given a sorted linked list, delete all duplicate numbers, leave only
distinct numbers from original list. e.g., given 1->2->3->3->4->4->5,
return 1->2->5. Given 1->1->1->2->3, return 2->3.