Fecundity interview question

Made me write a program to perform bubble sort