MathWorks Interview Question

All are from glass door excep the code template questions