RedMane Technology Interview Question

Write a method to reverse a string