Snapmint interview question

Asked about graphs Rotten oranges And one question on top k elements