Arranging the Inventory | CodeChef