Find the Number of Balanced Subsegments | Hello Interview