Results:
The result from running printBonusDatesBetween(2010, 2015);
is:
2010-01-02
2011-11-02
The result from running printBonusDatesBetween(2000, 2100);
is:
2001-10-02
2010-01-02
2011-11-02
2020-02-02
2021-12-02
2030-03-02
2040-04-02
2050-05-02
2060-06-02
2070-07-02
2080-08-02
2090-09-02
Which correspond to all of the palindrome dates for 21st Century for "yyyy-MM-dd" format.
Constraints & Checks:
Entring year values outside of 999 to 9999 is not allowed
Entering starting year that would be bigger then ending year is not allowed.