Walmart Global Tech interview question

Given a string containing only '(' , ')' , '{' , '}' , '[' , ']' , determine if the string is valid.