To swap the two words

To swap the two words. Given a string consisting of exactly two words separated by a space, print a new string with the positions of the first and second words swapped (i.e., the second word is printed first).

Test Case Input (String) Expected Output
1 Hello World World Hello
2 Good Morning Morning Good
3 Open AI AI Open