The ion with maximum number of unpaired electrons is
Mg2+
Ti3+
V3+
Fe2+
magnesium has stable inert gas configuration in mg2+. hence it has 0 unpaired electrons