Leetcode 2338. Count the Number of Ideal Arrays | Hello Interview