MathWorks interview question

It started with introduction. Then some hackerrank questions