Pergunta de entrevista da empresa HubSpot

the find all common repeated strings in the 'inengineering' string one. how to create an addComma function in js and add it to the global