Decentro interview question

Rotten Oranges graph question, directly asked this.