Problem in finding cb number

Please help me out. 5 test cases are passing out of 9.

Hi Ujjjwal,
You have to check whether a digit in a cb number had occurred in previous cb numbers or not. If it is occur before don’t count that number.

1 Like