Continental interview question

Program to find max overlap between 2 matrices