I have given the link to my code above.
My approach is that we keep adding the reached checkpoints in a min priority queue and for every checkpoint keep adding the distance to next checkpoint * top of priority queue(lowest cost petrol)
None of my test cases are correct.
