Leetcode 1784. Check if Binary String Has at Most One Segment of Ones | Hello Interview