Failing test cases in FINDING CB NUMBERS assignment

my code is failing some test cases of no 2,3,4,. plz can you tell me what is wrong in my code and what
are the test cases i am missing?