What is the theory that explains how the solar system was formed?

Redirected from "How do I generate the electron configuration of iron?"