Generate Parentheses Problem

I am not able to pass the test cases