A discussion to solve leetcode on a daily and discuss
....................
.......
Too easy that I had to do it myself on the first trial.
Interesting problem.
So SQL has DATe.ADD, DATE.SUB and DATEDIFF. Interesting...