Hexaware Technologies interview question

Program for string reversal in cpp