Partition With Given Difference Leetcode Problems