Deloitte Interview Question

Basic string and array, ask me to reverse the array