apple pie's submission of Four Equidistant Points on a Grid | CodeChef