Finding CB number


why is it not passing all testcases?