Synopsys Interview Question

reverse a string using reverse function in C