Hello!
To find electron configuration for Idoine we need to understand the following steps:
In this case, for Iodine. If we follow these rules we can see that the electron configuration is [Kr] 4d^10 5s^2 5p^5. We use Krytpon in front because that is the last full and stable noble gas before this particular element. Atoms are just trying to be stable so the goal is to achieve that full shell.