Scala Code Jam Practice