ImpactQA Interview Question

Reverse the string using function