Srinivas Devaki's submission of GRID | CodeChef