Sanmina Interview Question

Write a program that returns the digital root of a positive integer. The program needed to be in C#