MathWorks Interview Question

Logical indexing (Matlab)