Microsoft interview question

How to reverse a string

Interview Answer

Anonymous

Mar 12, 2012

using System; using System.Linq; namespace LinkeListShuffle { class Program { static void Main() { const string givenString = "one one two two three four"; var reversedString = string.Join(" ", (givenString.Split(' ').Reverse())); Console.WriteLine(reversedString); } } }