IBS Software Interview Question

Asked to write code for string reverse without using the function