Rosetta Problems

Count the Number of Ideal Arrays

https://leetcode.com/problems/count-the-number-of-ideal-arrays