BlackBerry interview question

Fizz buzz problem and its optimization