exercise 2 implementation (pattern matching)
exercise 2 impl using List API (init, last)
Merge branch 'master' of github.com:matheusemm/99ScalaProblems