Pairs With Certain Difference Leetcode Javascript