Kumi Labs interview question

Rotting Oranges problem solved using BFS alfgo