importCocoa//Swift define a stringlet str ="A Quick Brown Fox Jumps Over The Lazy Dog"//print the stringprint(str)//reverse the string word by wordlet reversed =str.components(separatedBy:" ").reversed().joined(separator:" ")//print the reversed stringprint(reversed)