http://oj.leetcode.com/problems/gas-station/