Infosys interview question

Best way to reverse string.

Interview Answer

Anonymous

16 Feb 2019

just swap down char array symmetrically (eg 0 with last,1 with last-1)