Filter: "continuous" (ends "ing"), "vowel_rich" (>5 vowels), "consonant_rich" (>5 consonants), "sorted" (ascending). Invalid => None.
Implement this function:
def get_words_by_criteria(words, criteria=None):
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: words, criteria.
Input
['running', 'walk', 'singing', 'cat']
'continuous'
Output
['running', 'singing']