Infosys interview question

reverse a string with odd places kept intact