Solve UVa 1238 - Free Parentheses.