NVIDIA interview question

Write a program to reverse the string without using built-in functions