const pattern = new RegExp(`(${problem.join('|').replace(/[\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d')})`, 'g');