Option (D) is the correct answer.
When a bond is formed by donating electrons then it is known as an ionic bond.
It is known that nitrogen is a non-metal and it is electron deficient in nature as its electronic distribution is 2, 5. Whereas metals are rich in electrons and therefore, they are able to donate electrons to an electron deficient atom.
Hence, out of the given options K is the only metal and its electronic distribution is 2, 8, 8, 1.
Therefore, we can conclude that potassium (K) is the element that would most likely form an ionic bond with nitrogen (N).
The chemical elements most likely to form covalent bonds are those that share electrons, such as carbon, as opposed to those that take them from another element to form an ionic bond.
your answer is B hope this Helps