The amount A earned at the end of a given period t for an interest compounded annually is expressed as

Account 1:
Amount deposited = 10000. thus, P = 10000
r = 4% = 0.04
Since the interest is compounded annually, n= 1
t = 3.
Thus, the amount in account 1 after 3 years is evaluated as

The amount earned at the end of 3 years in account 1 is $ 11248.64
Account 2:
P =10000
r = 3% = 0.03
n =1
t = 3
Thus, the amount in account 2 after 3 years is evaluated as

The amount earned at the end of 3 years in account 2 is $ 10927.27
How much more will be in account 1 than account 2:

Hence, there will be $ 321.37 in account 1 than account 2.