IBM interview question

Fizz Buzz, String parsing, substring