Inkoop interview question

Simple logical car position problem