HCLTech interview question

they asked about how to reverse a string using pointers