Pergunta de entrevista da empresa Infosys

they asked a string manipulation question