creating revese string file
defining reverse a string