Leetcode 3267. Count Almost Equal Pairs II | Hello Interview