Max's submission of Gasoline | CodeChef