Add solution to 'Valid parentheses'