Samsung Electronics Interview Question

Write a script to reverse a string