Four elements P,Q,R and S have 1,2,3, and 7 electrons in their outermost shells respectively….