FP101x Introduction to Functional Programming, lab 2

Fix sumDigits.