No one has replied
This is the most correct answer.
Euler number makes result max. And 3 is only integer that close to the e.
performance is not good, because each time even i or j already find a vowel, you still need to check set.contains(list[i]) or set.contains(list[j]) whether the other pointer is looking for a vowel.
However sometimes performance and succinctness is a tradeoff.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.