Equal Sum Partition Problem Leetcode Contest