HARMAN Interview Question

Write pallindrome, reverse a string code