Radware interview question

-binary search tree -find longest substring with valid parenthesis