Dhruv Gheewala's submission of FlatLand | CodeChef