reverse a number and find sum of digits of a number in c#