Can u please tell me why code is not passing testcases?


here is the link of my code

just change order of recursive call
this is because in question it is mention
The output strings should be printed in the sorted order considering ‘(’ has higher value than ‘)’.

Modified Code

thnk u very much your soln worked