Lionheart Games interview question

Sort an array with a maximum number