Domanda di colloquio di Walmart Global Tech

coding question was on graph and 2d matrix