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)".

Reset

Practice a different Java exercise