The code is giving correct output for most of the test cases except 2 test cases.
link-https://ide.codingblocks.com/s/75085
Test case problem in Finding CB Numbers problem
if string is
abcdxyz
and
b,c,d,x,y,z are cb number and also bcdxyz is cb number then u r checking for bcdxyz first
and will get ans=1 instead ans=6 and also for such