Pergunta de entrevista da empresa Academia

The problem they gave me was a theoterical combinatorics problem.