Problem 10 CSharp solution