Why MY CODE IS NOT WORKING?

CODEFORCES QUESTION:

https://codeforces.com/problemset/problem/352/A

my approach – https://ide.codingblocks.com/s/610517

Correct Code

this is simple question
think mathematically

Approach
count freq of each digit (0 and 5)
then just check the condition

a no is divisible by 90 if it contains atleast one 0 at end and freq of 5 is multiple of 9

check my code for details