Pregunta de entrevista de Capgemini

reverse string but keep words in same pattern