/InvertPhrase

You are given a phrase and have to invert it, but maintaining the correct word order and punctuation marks. Word with hyphens must be respected.

Primary LanguageC#

InvertPhrase

You are given a phrase and have to invert it, but maintaining the correct word order and punctuation marks. Word with hyphens must be respected.

Some examples:

  1. Good afternoon -> afternoon Good
  2. Hello, how are you? -> ?you are how, Hello
  3. Are you twenty-one years old? -> ?old years twenty-one you Are