Not passing all the test cases

failed in 2 of my test cases but rest all passed.
what am I missing?

@prateeknanda10
In number theory, an armstrong number in a given number base is a number that is the sum of its own digits each raised to the power of the number of digits.
so you have to use n in pow function instead of 3

this somehow fails even more test cases now

your n is changing so in calculating power n is not the original one store n in anaother var then use var in pow @prateeknanda10

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.