What is the intuition behind why gravity is inversely proportional to exactly square of distance between two object and not cube or not some multiplier. Basically how Newton came up that its exactly square of distance? How it was validated it is in fact square of distance ?
Imagine "gravity" spreading out in a sphere, like light from a bulb.
For each doubling of the distance, the sphere has four times the area. The surface area of the sphere is proportional to the square of the radius. If the same gravity is stretched over that sphere, the force of gravity would be inversely proportional to the square of the radius.
This gives sufficient intuition for most physicists of the time to believe that gravity was probably inverse square. Newton's real genius was that he was able to prove using mathematics that a planet moving in an inverse square law would obey Kepler's laws, something that his contemporaries had failed to do.
A well known story, related by de Moivre:
In 1684 Dr Halley came to visit [Newton] at Cambridge. After they had been some time together, the Doctor asked him what he thought the curve would be that would be described by the planets supposing the force of attraction towards the sun to be reciprocal to the square of their distance from it. Sir Isaac replied immediately that it would be an ellipse. The Doctor, struck with joy and amazement, asked him how he knew it. Why, saith he, I have calculated it.
The validation is the same as the validation of any astronomical theory: it fits the data. Newton's law of gravitation was formed empirically, by observing the motion of the planets.
In particular, he took Kepler's laws, which were observational, and $F=ma$ from his physics and determined that the elliptical orbits we see must be caused by something with an inverse-square relationship to distance. The association with mass can be determined by looking at relative perturbation of orbits as they pass various masses. (I cannot find a good source for which masses he was using, but I would venture a guess that Jupiter and/or its moons were involved).
Indeed, there is a particularly interesting proof that came later, called Bertrand's Theorem. If you have a system governed by central forces (forces caused by a body which only pull inwards or push outwards from the center of that body), there are only two kinds of laws which can produce bounded closed orbits. One is when the force is proportional to distance, as we see in springs and Hooke's law. The other is when the force is inversely proportional to the square of the distance, as we see in gravity (among other forces). This says that if one observes closed bound orbits, one can be certain that the forces involved are one of those two. One can then determine which is which by observation of the orbits.
And, of course, there is no proof that the forces are central. There could be small invisible angels carefully leading the planets on their path. However, the central-force based approach proves more satisfying to the scientific community, for obvious reasons.
"The strong force acts between quarks. Unlike all other forces (electromagnetic, weak, and gravitational), the strong force does not diminish in strength with increasing distance between pairs of quarks.".
The behaviors of the various forces are different. They are measured, not intuited.