FP101x Introduction to Functional Programming, lab 2

Implement sumDigits.