BRAIN CORP interview question

CAD experience python coding about calculating the distance that how much the car moved,