Number of Segments in a String - DSA Problem | Talentd