Pergunta de entrevista da empresa Oracle

Question-related to programming and puzzles