Correct option is D
Formula Used:
If the square of a number ends in 4, the number must end in 2 or 8.
Solution:
If the number ends in 2, its cube ends in 8. If the number ends in 8, its cube ends in 2. Hence both 2 or 8 can be the ending number of its cube.