The world final of formula 17 is held in Nlogonia. The cars line up on the starting grid in a fixed order and start the race, and the order in which they cross the finish line is the final standing.
An overtake is one car passing the single car directly ahead of it. One overtake swaps the order of those two cars and leaves every other car where it was.
Given the starting order and the finishing order, find the smallest number of overtakes that can explain the result.