Create Generate Parentheses 

study it