There are n gas stations on a circle. gas[i] is fuel available at station i; cost[i] is fuel needed to drive to station i+1. Starting empty at some station, return the index from which you can complete one full clockwise circuit, or -1. The answer is unique when it exists.
Input
gascostOutput: the starting index, or -1.
1 2 3 4 5 3 4 5 1 2
3
2 3 4 3 4 3
-1
Run your code against the sample tests, or Submit to run the full suite.