Good Subsegments

Problem Name:
Good Subsegments
Site:CodeForces
Links:
Tags:
Problem setters: