Garmin Interview Question

A sorting challenge with python or javascript