Solve the 'Gas Station' question