Leetcode Count Pairs With Given