Pergunta de entrevista da empresa Infosys

How to reverse a string ?

Resposta da entrevista

Sigiloso

20 de jun. de 2019

Take two pointers, one at start and one at end. Start swapping the values at the two pointers and increase start by one and decrease end by one. Repeat the process till start