Medallia Interview Question

Write a method the gets a string as input and prints is backwards. Hello world will be printed as world hello.