Infosys Interview Question

create a function for reverse string without any inbuilt function