Decide the start of the circular gas station path
Can you prove the algorithm works? It really looks suspicious. Besides, running it against a

{4,6}, {6,5}, {1,3}, {7,3}, {4,5}


test case returns 2. (Hint: the correct algorithm is much simpler).