Parentheses Balancing kata in Scala.