Implement encloseWithParentheses() using recursion to handle any size of complex concepts.