Count Number Of Bad Pairs Leetcode Solution