Max's submission of Restock | CodeChef