Count Binary Substrings Hackerrank Solution For Python