Pascal, Parentheses Balancing and Coin Change