Capgemini Interview Question

reverse string but keep words in same pattern