E2open Interview Question

Write a program for string reverse