Your question is Validate Nested Bracket Strings. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a string s containing only the characters '(', ')', '[', ']', '{', and '}', determine whether the brackets are balanced. A string is balanced if every opening bracket is closed by the same type of bracket and in the correct order. Return a boolean value.
def is_valid_brackets(s):