Count Distinct Pairs With Given Sum Leetcode