Citi Interview Question

DFS/BFS in a 2D matrix