Question d’entretien chez BlackRock

valid parenthesis and graph problem