Adding salt to the water increases its density. On adding certain quantity of salt, the density of water becomes greater than that of egg.So by law of flotation, as the mass of water (salted)...
When salt is added to water, the density of water increases. Therefore the density of egg becomes less than the density of water therefore it begins to float in water.