Pairs With Certain Difference Leetcode Javascript Practice