Leetcode 3250. Find the Count of Monotonic Pairs I | Hello Interview