Define a function that takes a positive integer and returns the sum of its digits (e.g. 4096 is mapped to 19). Two mathematical operations that might be useful here are modulo (%) and integer division (//).

Updated: