Recursion and backtracking

please give the idea of recursive case in the question generate paranthesis