Nokia interview question

(easy) Reverse an inputted string (abcd to dcba)