Oracle interview question

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