Write a code to validate if given string of brackets is balanced or not.
Asked in the technical stage. Implement the function below using a stack.
is_balanced(s) receives a string containing only (, ), [, ], {, and }. Return True when brackets are correctly matched and nested, otherwise return False.
def is_balanced(s):