Scala solution to 99 problems.