NVIDIA Interview Question

Given a string input, write a function that reverses it.