Statement
Write validBrackets(s): return true if the parentheses (), square brackets [] and braces {} of s are properly matched: each closes with its own kind and in the right order ("([])" yes, "([)]" no). Any other character is ignored.