Partial submission of CHEFPDIG

Problem statement-> CodeChef: Practical coding for everyone

my solution → CodeChef: Practical coding for everyone

how can i edit my code so that i can pass constraints 1 ≤ N ≤ 10^100000

Your code is hard to understand. Simply check for the digits in the number and their frequency. Then starting from 65 to 90 check if both the two digits were there, frequency is required for numbers like 66, 77, 88 cause you need digit two times. Here is code if it helps Solution.
Upvote if find helpful!!

Editorial for this problem is well written it also discusses about how to handle very big N value, check it here. CHEFPDIG - Editorial - editorial - CodeChef Discuss