Kitware interview question

Walkthrough of sorting algorithm on white board