Write a function to sum the digits until you get 1 digit number?
Login to Submit
Input: 12 Output: 3 Reason: 1 + 2 = 3 Input: 191 Output: 2 Reason: 1 +9 + 1 = 11 -> 1 + 1 = 2