Depression of freezing point of a solvent is a colligative property of a solution i.e., it depends on the number of solute particles irrespective of their nature relative to the total number of particles present in the solution. Therefore, more the number of solute particles, more is the depression of freezing point of the solvent. Also ionic compounds when dissolved in water, dissociate into anions and cations, so the van't Hoff factor, i must also be taken into consideration. By this, increasing the effective particle concentration in comparison to the covalent compounds.
Let's see it one by one:
For 0.01M NaCl, one cation (Na+) and one anion (Cl-). Thus there are two moles of dissolved particles per mole of compound. giving 0.02M effective particle concentration.
For 0.005M C2H5OH, one cation (C2H5+) and (OH-). Thus there are two moles of dissolved particles per mole of compound. Giving 0.01M effective particle concentration.
For 0.005 MgI2, one cation (Mg2+) and two anions (I-). Thus there are three moles of dissolved particles per mole of compound. Giving 0.015M effective particle concentration.
For 0.01M MgSO4, one cation (Mg2+) and one anion (SO42-). Thus there are two moles of dissociated particles per mole of the compound. Giving 0.02M effective particle concentration.
So, we can see that lowest depression in freezing point is of 0.005M C2H5OH as it has least effective particle concentration. Since it has least depression, it has maximum freezing point.