Solution for https://oj.leetcode.com/problems/sort-list/