Domanda di colloquio di Amazon

1 - reverse a string array 2- check if parenthesis are closed or not in a string.