A horizontal stream of water leaves an opening in the side of a tank. If the opening is made at a height 'h' above the ground and the stream hits the ground at a distance ‘D’. Then what is the speed of water as it leaves the tank in terms of g, h and D?