Bright Data Interview Question

implement function that vefifies whether parentheses witin text are correctly nested. consider three kinds () [] <>