Oracle Interview Question

Question on puzzles, and programming was asked