Finding cb numbers


it is showing wrong answers for 3 cases


use this