Leetcode List Problem