https://oj.leetcode.com/problems/partition-list/