Falcon Autotech interview question

Frog jump type of problem.