Solved gas station problem