Longest String Made Up Of Only Vowels

Given a string of lower characters, remove at most two substrings of any length from the given string such that the remaining string contains vowels('a','e','i','o','u') only.


This is a companion discussion topic for the original entry at https://algo.monster/problems/longest_string_made_up_of_only_vowels/