iQGateway interview question

reverse the order of a given string