Count Binary Substrings Hackerrank Problem