IBS Software interview question

Asked to write code for string reverse without using the function