BlackBerry Interview Question

Fizz buzz problem and its optimization