Horizontal range is maximum if the angle of projection is 45∘ and is given by Rmax=gu2
Here, Rmax=100m
Then, 100=gu2⋯(1)
If the ball is thrown vertically upward, then the ball will attain the maximum height from the ground as Hmax=2gu2
Hmax=2100=50m