In the first test case, when Sean takes the first note and the third note, the sun he has seen must have been of
2 different days.
In the second test case, Sean never sees the sun, so the answer is 0.
In the third test case, the array can be [1,1,1] or [1,0,1]. If the array is [1,1,1], the notes can be taken in the same day, so Sean could have seen the daylight of the same day, and the result is 1. If the array is [1,0,1], the first and third notes must have been taken in different days, so there are at least 2 days of sun that Sean has seen. So the answer is 1+2=3.