totally different way by using kinematic eqns
height = init vel * t + 1/2 * accel * t^2
and
final vel ^2 = init vel ^2 + 2 * accel * height
given h(t) = vt - 16t^2
accel = -16*2 = -32
at max height=400, final vel = 0
0 = v^2 + 2 * (-32) * 400
v^2 = 25600
v = 160 feet per second