some random experiments
CIS194 Homework 1

updated toDigits to do all manipulations as strings, then cast as
integers only at the end. If you cast as integers early, you lose 0s:
“012” as an integer is just 12.