Pregunta de entrevista de Hulu

Basic sorting algorithm (easy LC)