Bilal interview question

rotten oranges using bfs,one pattern question