Count Binary Substrings Hackerrank Solution C