partition list leetcode