Write a function that checks characters(brackets) in input string and looks for its correspondence. If the number of opening and closing character is the same, then it returns true. Otherwise - false.
Input: checkBrackets("(())")
Output: true
Input: checkBrackets("(()")
Output: false
Input: checkAllBrackets("({[]})")
Output: true
Input: checkAllBrackets("()[]{")
Output: false