MathWorks Interview Question

I forget the exact question, but it was a sorting question