The question is incomplete, the elements to be arranged as required are shown in the image attached to this answer.
Answer:
K<Mg<P<O
Explanation:
Electronegativity is the ability of an atom of an element in a compound to attract the shared electrons of a bond towards itself. Atoms of highly electronegative elements tend to polarize a covalent bond leading to polar covalent bonds and dipole moments. Electronegativity increases across the period but decreases down the group hence the arrangement of elements in the answer provided above.
Capillary action is the ability of a liquid to flow in narrow spaces without the assistance of, or even in opposition to, external forces like gravity.