Oracle Interview Question

Puzzles, SQL queries, and DSA