While you might be able to just take your calculator, multiply $1378 * 1378 * \dots$ notice the pattern in the last digit, and extrapolate for $n$, there is a better (dumber) solution, which takes much less thought. Use modular exponentiation to quickly computer $x^n \mod{10}$ and report the answer.