Show with the help of diagram of electronic configuration how the following compound are formed from the constituent atoms.
Hydrogen chloride