RedBadge challenge solution in Csharp