IBM interview question

reverse a string, and capitalize correctly: Hello World -> Dlrow Olleh