Pergunta de entrevista da empresa Richpanel

Q. give N parentheses make all correct combination from them.