In this exercise, you will be given a general description of a meetup date and then asked to find the actual meetup date.
Examples of general descriptions are:
The descriptors you are expected to process are:
Note that descriptor
teenth is a made-up word.
There are exactly seven numbered days in a month that end with "teenth" ("thirteenth" to "nineteenth").
Therefore, it is guaranteed that each day of the week (Monday, Tuesday, ...) will have exactly one numbered day ending with "teenth" each month.
For example, if given "First Monday of January 2022", the correct meetup date is January 3, 2022.
Sign up to Exercism to learn and master Go with 34 concepts, 140 exercises, and real human mentoring, all for free.