Pergunta de entrevista da empresa ExcelSoft Technologies

string reverse without using inbuilt function