Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Have a integer array of how many days there are per month. February gets one extra day if its a leap year. Then, we can manually count the ordinal as day + (number of days in months before this one).