MathWorks Interview Question

Oops basics and questions on DSA