Finding cb numbers error


i am getting error in some test cases can anyone tell me why?