https://practice.geeksforgeeks.org/problems/partition-array-to-k-subsets/1