Inkoop Interview Question

Simple logical car position problem