Rosetta Problems

Number of Segments in a String

https://leetcode.com/problems/number-of-segments-in-a-string