PRDXN interview question

reverse a string without breaking sequence and without using inbuilt function