You could see whether for each digit there is a number that when cubed has that digit in the ones place in the cube.
The key thing for doing this quickly and efficiently is realizing that only the units digit matters. So, for instance, when considering 9³, we don't need to figure out the actual value, only that 81 x 9 will have a units digit of 9, because 1 x 9 = 9.
0 -- 10³ works.
1 -- 1³ works.
2 -- No odd number works. 2³ = 8, no. 4³ = 64, no. All powers of 6 end in 6, no. 8 x 8 = 64 8 x 4 = 32 8 works.
3 -- No even number works. 3³ = 27, no. All powers of 5 end in 5, no. 7 x 7 = 49 7 x 9 = 63 7 works.
4 -- From above, 4³ = 64.
5 -- All powers of 5 work.
6 -- All powers of 6 work.
8 -- From above, 2³ = 8.
9 -- No even number works. From above 3, 5, and 7 do not work. 9 x 9 = 81 9 x 1 = 9 9 works.
Every digit could be the units digit of n³.
The correct answer is E.