AKUNA CAPITAL interview question

matching () [] {}. given a string, determine if the () [] {} are matched.