Balancing Parenthesis

You are given a string containing an unbalanced set of parenthesis as an argument. Return a new string with the parenthesis balanced.

Requirements

  • Must return a string

Example #1

solve("))")
> "(())"