Pergunta de entrevista da empresa Oracle

AN algorithm will be asked. difficulty level average