Capgemini Interview Question

Write a program for String words reverse?