solves a traditional puzzle about matching birthdays
