Pergunta de entrevista da empresa Keploy

I was asked to solve one Data Structures and Algorithms question related to DFS and BFS. Specifically, the problem I had to tackle was the classic '01 Matrix' challenge,