Oracle Interview Question

Standard problem solving using common data structures. Nothing too difficult, but requires deeper thinking on the spot.