BlackBerry Interview Question

Some basic string algorithms.