Adobe interview question

String reversal problem (word by word) optimised code.