Infosys Interview Question

reverse a string with odd places kept intact