Capgemini Invent Interview Question

reverse of string?