Domanda di colloquio di Flipkart

A Problem very similar to Rotten Egg problem solved using BFS.