This scenario demonstrates the first law of motion because the coffee cup remained at rest and the moving of the car created the motion to make it fall. The car's an unbalanced force, so when it moves, the cup does to.
Its an example of newtons first law because if the car did not move, the cup would have never fell. The car and cup will stay in place unless something or someone moves the object at rest.