XY's submission of Polygon Chain | CodeChef