IBM Interview Question

Solve an algorithmic problem in Java.