SLK Group Interview Question

reverse a string without inbuilt js function.