MathWorks interview question

pigeonhole principle