Finding CB numbers

https://ide.codingblocks.com/s/296473,
One test Case is not passing, what may be the issue?

8
86922395
@CODER_JATIN try this test case
answer should be 4 but your code’s output is 0.