5: Reverse words

Write a method that takes a phrase and reverse words in the phrase

 

Example 1

Input: Everybody lies

Output: lies Everybody

Example 2

Input: Holy crap

Output: crap Holy

Note: Words are separated by single space