Pregunta de entrevista de Anonymous

Array, map, graph based DSA question