Garmin interview question

Dynamic Programming and basic Databases