Question d’entretien chez Infosys

create a function for reverse string without any inbuilt function