Result for problem two.
Scala trainings