Pergunta de entrevista da empresa Viasat

Some questions related to DFS/BFS and 2D array