Pergunta de entrevista da empresa Oracle

Coding challenge was hard and difficult to Crack