Valid ParenthesesDetermine if the input string has valid brackets that are properly opened and closed