Just replace the initialization dates with the ones from the problem.
Cheryl's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=4
Teacher's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=5
Just replace the initialization dates with the ones from the problem.
Cheryl's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=4
Teacher's Birthday http://www.r-fiddle.org/#/fiddle?id=8zUu1GdT&version=5