Given a string containing three types of brackets: curly brackets {}, square brackets [], and parentheses (). The nesting rules are as follows:
{}
[]
()