GAS STATION

N^2 solution, but accepted