Capgemini Engineering Interview Question

they asked me to write a program to reverse a string using recursion