Sigmoid interview question

Finding 3 consecutive dates Cumulative sum Window functions