LeetCode
Day of the Year
Click
here
for an explanation.