RSL Interview Question

Data Structure Algorithm Java Puzzle