CrimsonLogic interview question

Organizing a strictly increasing list