Aspire Systems Interview Question

reverse a string using function