input: Write a python function to determine the total number of collisions when n cars travel from the left and another n cars travel from the right on an infinitely long straight road, assuming all cars travel at the same speed. The cars are completely indestructible and continue on their paths post-collision.
  assert car_collision_count(2) == 4
  assert car_collision_count(3) == 9
  assert car_collision_count(4) == 16
  assert car_collision_count(8) == 64
  assert car_collision_count(10) == 100
output: def car_collision_count(n):
      return n * n