Solved GenerateParentheses

First with an approach, then in the order in which LeetCode expects.