Sigmoid Interview Question

Finding 3 consecutive dates Cumulative sum Window functions