Garmin interview question

Standard algorithms questions in C