As reported: Microsoft SDE2 (mobile, Android; Sep 2025), round 1 — three DSA questions; the third was LeetCode Count Vowel Substrings of a String.
A vowel substring is a contiguous substring that consists only of vowels ('a', 'e', 'i', 'o', 'u') and contains all five of them. Given word, return the number of vowel substrings in it.
This is LeetCode 2062 — Count Vowel Substrings of a String.
Example 1
word = "aeiouu" -> 2 ("aeiou", "aeiouu")
Example 2
word = "unicornarihan" -> 0
Example 3
word = "cuaieuouac" -> 7
Constraints: 1 ≤ word.length ≤ 100; lowercase English letters.
Code runner format: one JSON value per line: word (LeetCode's test-case format). Implement countVowelSubstrings(word); the harness prints the result.