Synopsys interview question

reverse a string using reverse function in C