Pergunta de entrevista da empresa Cirrus Logic

A coding question related to string manipulation.