IBM Interview Question

The programming challenge also involved a simple data structures problem.