solve the gas Station problem.