We are asked to solve for the interest during the year given that it is compounded monthly, we are given with the formula A = P(1+r)^n. The solution is shown below;
A = P (1+r)^n
A = $5,000 (1+ 3.5/12)^(12*1)
A = $5,000 (1.000292)^12
A = $5,177.84
Hope this helps!