Determining whether a projectile hits a wall given u and y_max

Information: Determining whether a projectile hits a wall given u and y_max