Garmin interview question

A sorting challenge with python or javascript