solution of http://oj.leetcode.com/problems/remove-duplicates-from-sorted-list/