I know this may seem pretty simple to most but I need to reverse a string. So like if the user types "WX YZ" I want the output to be "ZY XW" Is there a way to do that using a loop?

Thanks in advance.