Wow! This problem is kind of tricky. If you're ready to put your thinking cap on, brace yourself, and good luck! Otherwise, you can skip it for now and return any time later.
You have the lyrics of a song; however, it was written by a guitarist who put chords within the text. It was a beginner guitarist, so he only knows the Am, A, Em, E, Dm, D, G, and C chords.
Write a program that reads the lyrics of a song, removes all chords with extra spaces from it, and prints out the clean lyrics text.
Input: text: String
Output: cleanText: String