The correct option is C N2
We know that, like dissolve like. Water being polar in nature dissolves ionic compounds. While covalent compounds do not dissolve in water.
As N2 is a covalent compound, it is insoluble in water. While NaCl, KCl and MgO are ionic compounds, thus, they are soluble in water.