Bright Data interview question

find matches paranthesis types in a string