Roblox interview question

How to check if a board matrix matches a pattern matrix.