Count Vowels Permutation (LeetCode 1220): count strings of length n over vowels obeying follow rules
Asked in the OA stage. Given n, count strings of length n formed from a, e, i, o, and u, where a may be followed by e, e by a or i, i by a, e, o, or u, o by i or u, and u by a. Return the count modulo 1_000_000_007.
Input: One integer n. Output: An integer count.
def count_vowel_permutations(n):