C# exercise