Hi, thanks for responding.
I actually was able to submit the first code. Their was some problem with CB ide. When i changed python 3 to python 2.7 some how it got submitted and all test cases were passed. But still in python 3 and sometimes in python 2.7 it is giving error. I am sure their is some problem with the ide.
In the second problem, I actually tried and submit various solutions and all of them are correct as properly checked by me. The question isn’t very tough. But still the ide is not accepting it. I can provide other versions of solution used for the counting binary string problem. I have mailed coding blocks and they have forwarded the issue.
Also, I have already tried modulo in every step. The same problem is still their.
Thankyou for you help.