Count number of binary strings

codeLink:https://ide.codingblocks.com/s/187963
my code is able to pass only one test case please correct it and specify my mistake