Question 9For a positive integer $n$, the units digit of $n^3+3n^2+3n$ is $4$. Find the units digit of $31n^2+n+2021$.