Code for the Date Disaster puzzle