Ambesh Tiwari's submission of D - Break the Rules | CodeChef