Given a non-negative integer n, return the sum of its digits.
n
For example, n = 493 → 4 + 9 + 3 = 16.
n = 493
4 + 9 + 3 = 16
This shows up constantly in checksum algorithms, validation systems (like credit card numbers), and number theory problems.