MathWorks Interview Question

Not able to clear previous round