Oracle interview question

Puzzles and logic