solved "Gas Station" on LeetCode http://oj.leetcode.com/problems/gas-station/