Fidelity Investments Interview Question

reverse a string in coding language of choice