IBM interview question

buzzfizz, string parsings