Pergunta de entrevista da empresa Oracle

Questions are from Database, algorithm & puzzles.