Sum of digits till SUM becomes a
single digit
Input:
Output: