Returns recursive sum of digits of a number formed by repeating a number X number of times until sum become single digit .
int repeatedNumberSum ( int n , int x ) { int sum = x * digSum ( n ) ; return digSum ( sum ) ; }