MathWorks interview question

Standard Hackerrank coding challenge questions and a few math problems.