Check if Binary String Has at Most One Segment of Ones

Related Tags

Check if Binary String Has at Most One Segment of Ones - Coding Problem | K5kC