Count Pairs With Given Sum Leetcode Rating System