Pergunta de entrevista da empresa American Express

check if another 2d array contains the same pattern