attempting 99 problems in scala. Functional Fun !