Bitwise Interview Question

find no of sub strings in the given string.