subject to the boundary condition that v = u at t = 0.
Solve this differential for t as a function of v and then make v the subject. Get x from v and use it to find x when v = 0 (the maximum height).
Now set up and solve the differential equation for the downwards motion. Find v when x = distance found above.