IBM interview question

Fizz Buzz, string parsing, substring.