Comments

Interesting numbers should be numbers whose last digit is 9, not multiples of 9. So there are 10 in total.

Sorry it's O(n^3), my brain got stuck.

It's lowercase in your output dude, here's the picture.

Can anybody help me calculate the time complexity of my solution to B? I think it's O(n^4), but it passed the system test. Code here