Write a user defined function that accept a string & and print the reversed string , write algorithm & draw a flowchart for the same.