Partition With Given Difference Leetcode Two