HCLTech Interview Question

they asked about how to reverse a string using pointers