MathWorks interview question

MATLAB Programming questions: Implement filter and sorting algorithms..