Pergunta de entrevista da empresa Oracle

Solve the Rotten Orange question (Graph question available on the Leetcode)