Solar System consists of Sun and the other planets are revolving around it. Please explain the origin of the planet that is considered as the hottest in the solar system, also elaborate the dependence of distance from the sun on the hotness of the planet.