Practice Program For Functional Programming in Scala