At maximum height, in a moment in time, the object is not accelerating upwards or downwards, so final velocity is 0.
Remember, we are finding displacement, the difference in height between initial and maximum in this case. The actual initial height value does not matter for this problem. For this question, you can ignore the ball falling down, as we are only interested in the ball going up.
Since I modelled initial velocity as positive, acceleration is negative as it is acting against the ball.
Use V^2 = u^2 + 2as.
When modelling problem, model in the direction of motion.