Given a string containing brackets, determine whether it is valid and properly nested.
The string may contain (), {}, and []. Return True only when every opening bracket has the correct closing bracket in the proper order. Implement def valid_brackets(s):, where s is a string and the result is a boolean.
def valid_brackets(s):