Pergunta de entrevista da empresa Vanta

Solve another variation of Leetcode problem 291, Word Pattern II. This variation introduced metapatterns and requires writing a backtracking algorithm along the lines of N-Queens.