IBM Interview Question

java algorithms