Softeon interview question

Write a program for reverse string