Leetcode 3251. Find the Count of Monotonic Pairs II | Hello Interview