K Partition Problem Leetcode Premium