A horizontal stream of water leaves an opening in file side of a tank

A horizontal stream of water leaves an opening in file side of a tank. If the opening is h make above the ground and the stream hits the ground D make away. Then what is file speed of water as it leaves the tank in terms of g,h and D ?

The stream of water leaving the tank behaves like a horizontal projectile and follows parabolic path.