Garmin Interview Question

Sum the digits of a integer in C