Gas Station : O(n)

time complexity is O(n) and space complexity is O(1)