← Morgan Stanley questions

Substrings with only and all vowels

Filed under Morgan Stanley

Given a string, find all substrings (or count them) that contain only vowels ('a', 'e', 'i', 'o', 'u') and include every vowel at least once.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.