string reverse program complete