Pergunta de entrevista da empresa Confluent

A brute force question looking for types of permutations in a string.