Question d’entretien chez Microsoft

1. find if a given string has valid paranthesis