using System.Collections.Generic;
public static void Main()
Console.WriteLine("Test Results:");
TestScenario(null, null);
TestScenario(string.Empty, string.Empty);
TestScenario("One two three four", "enO owt eerht four");
TestScenario("Make sure uoy only", "Make sure you only");
TestScenario("esrever sdrow of ddo", "reverse words of odd");
TestScenario("length", "length");
TestScenario("Bananas", "sananaB");
TestScenario("are cool", "era cool");
TestScenario("ABC !@#$A", "CBA A$#@!");
TestScenario("Make sure uoy only!", "Make sure you only!");
TestScenario("One two three four.", "enO owt eerht four.");
TestScenario("Bananas-are-cool", "sananaB-are-cool");
TestScenario("One-two three four", "enO-owt eerht four");
static void TestScenario(string source, string solution)
var testResult = ReverseOddLength(source);
Console.WriteLine(string.Format("{0,-23} {1,-23}", string.Empty, testResult));
Console.WriteLine(string.Format("{0,-23} {1,-23}", source, solution) + (testResult == solution ? " OK " : " REVIEW "));
Console.WriteLine(string.Empty);