Getting WA in the Test Cases
hi @akash.91.yadav the order in which you are generating paranthesis did not match the sample output. I have corrected your code https://ide.codingblocks.com/s/249906 here.
Please mark your doubt as resolved in case you dont have any further queries.