MathWorks Interview Question

Questions from Finite automata