Pregunta de entrevista de Oracle

Questions are from Database, algorithm & puzzles.