MathWorks interview question

linear regression, heap