BNY Interview Question

A strategy to hit the car with integer speed.