Word Reversal
In C# or C++, write a function that reverses the order of the words in a string. For example, your function should transform the string "I pledge allegiance to the flag." to "flag. the to allegiance pledge I". Assume that all words are space delimited and treat punctuation the same as letters.
Permutations
In C# or C++, write a function that takes a string, and returns an array with every permutation of the characters in the string. Example: Input: "cat" Output: {cat, cta, tca, tac, act, atc}