how would you write this task?
Write an application that reverses all the words of input text:
Example "abcd efgh" => "dcba hgfe"