Equal Sum Partition Problem Leetcode