IBM Interview Question

buzzfizz, string parsings