TraceLink Interview Question

Write a code for string reversal.