Give a Right-hand sum approximation of integral 1 to 4 of x^2 with n=4?

I have done this problem alot and my teacher says the answer is 30 but I cant get it. HELP

clearly the intervals have width 1.

So, with right-hand endpoints, we need

1*(f(1)+f(2)+f(3)+f(4)) = 1+4+9+16 = 30

what was so hard about that?