BlackBerry Interview Question

Data structure and algorithms. Loops