N Knights Problem | CodeChef