HCLTech interview question

reverse a string in c language