I want to change code below to return one array of a whole year, while also taking leapyears into account.
This is my solution but it does not take leap years into accoun