Garmin interview question

Writing and testing a specific sequence.