Here’s the link to my code https://ide.codingblocks.com/s/84245
Hi @mudit2jain,your code is not working for 86922395 output should be 4 but your ans is 2.