Finding CB numbers

Can you please let me know why my all test cases are not passing in this code https://ide.codingblocks.com/s/172339

Given a string same character can be used more than 2 ways if that number happens to be a CB number your code will count that number more than once. So, make sure each character is used once only.