IBM Interview Question

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