Ugly numbers problem

why i m getting wrong answer here…?

I have edited your code… Try to submit it now…