I need help with following Car race Algorithm.

I am writing a simple car race program.
In a race, the LeaderBoard tracks the current order of the cars, who
is in first place, etc. We have 10...