Pergunta de entrevista da empresa TribalScale

Given a string of brackets e.g. "({}[])", determine if it is a valid input.