Pregunta de entrevista de PhonePe

DSA array and graph question (Mid level)