Check if Binary String Has at Most One Segment of Ones

Answer Panel