Last Chance for Gas

I wrote code for the second problem. If you can go more than 200 miles
without stopping for fuel.