Counting pairs with difference exactly k in a sorted array of… | Two Pointers and Sliding Window question · AnyPrep