two test case fail
and 6 test case pass
@khemchandrs your code is not working for 86922395 output should be 4 but your ans is 2.