The phone screen focused on finding a valid 5-7-5 Haiku inside a longer sentence using a provided syllable dictionary. The input could contain capitalization and punctuation, so the implementation also needed to normalize words correctly while preserving the original text in the returned poem.
Interview Details
Coding — Find the First 5-7-5 Haiku
The input consisted of a sentence and a dictionary mapping normalized words to their syllable counts. For example, a rewritten input could look like:
sentence = "Elephant Soft morning blossoms Silver rivers carry light Night winds cross the hills. Return again"