Based on projectile motion and maxima and minima concept.
Upload an image:
If the ball is projected horizontally...so what angle are u asking of?
But yeah maximum area will be when angle is 45 degrees