Ambar Pal's submission of Sherlock and the Grid | CodeChef