input: Write a python function to determine the total amount of impacts when n vehicles are traveling eastward and another n vehicles are traveling westward on an ideally straight, infinitely long road with all vehicles moving at a constant speed. The vehicles are indestructible and persist on their course post-collision.
  assert car_race_collision(2) == 4
  assert car_race_collision(3) == 9
  assert car_race_collision(4) == 16
  assert car_race_collision(8) == 64
  assert car_race_collision(10) == 100
output: 
  def car_race_collision(n):
      return n * n
  