For those who do not know the sum of cubes formula can apply this approach :
$1^3+2^3+3^3+4^3+...n^3 $
Now, replace every digit with n, then series becomes like :
$n^3+n^3 + n^3+….+n^3 $
We can also say that:
$1^3+2^3+3^3+4^3+...n^3 < n^3+n^3 + n^3+….+n^3 $
And , $n^3+n^3 + n^3+….+n^3 $ is basically $(n\hspace{2mm} times)$.
So , it becomes $O(n^4)$