PwC Interview Question

Asked me to write code to reverse string