Infogain interview question

Code Sum of digits?