apple pie's submission of Fill The Grid | CodeChef