Logicx Interview Question

Wap a code to reverse a string