"Programming =++ Algorithms" C# Translation