Hulu interview question

Basic sorting algorithm (easy LC)