BRAIN CORP Interview Question

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