Miami University Programming Competition Problems solved in Scala