Count Vowels Permutation - Dynamic Programming - Leetcode 1220 - Python