MathWorks Interview Question

so far behaivor questions are easy