Pergunta de entrevista da empresa Cognizant

Coding problem on string and array manipulation using js, python, c++