On the rare occurrence of a solar eclipse (Surya Grahan), the celestial bodies align in such a way that the…