Functional Scala Practice Problems