I am trying to reverse the order of words in a string, but my output is a bunch of junk that makes no sense. I don\'t know what is the problem, maybe the loops are broken.