Pergunta de entrevista da empresa Google

Given a binary string, determine the number of substrings that have more 1s than 0s