Week 2
Just setting up my twttr
Walk each letter and drop the vowels.
One word.
That word without vowels.
The question, more slowly
The question is: a word comes in, and you print it with the vowels removed. The spec says which letters are vowels. Consonants, numbers, and punctuation stay, in the same order.
Build a new string as you walk the old one. Skipping a letter means you do not add it. The original word does not lose letters by itself.
People delete vowels from a copy while looping over it and skip letters by accident. Also check whether y counts. The spec answers that. Try a word that is all vowels, which should come back empty.
Before you code
Cross the vowels out of a word you invent. Leave y alone unless the spec says otherwise. Read the spec before you decide.