MathWorks interview question

Logical indexing (Matlab)