X163: parenBit

Given a string that contains a single pair of parenthesis, compute recursively a new string containing only the parentheses and their contents, so "xyz(abc)123" yields "(abc)".

Your Answer:

Feedback

Your feedback will appear here when you check your answer.