Pergunta de entrevista da empresa OpenText

coding question using array manipulation and string manipulation