when switch is closed,a magnetic field will be bulit up in the solenoid. there will be an induced current flowing in the aluminium ring.By Lenz's law.the induced current flows in a direction such that it produces an effect to oppose the change. so the end of the ring near the solenoid becomes a south pole.the aluminium ring will move away from the solenod under the action of the replusive force acting on it by the solenoid.
when switch is closed,a magnetic field will be bulit up in the solenoid. so there is change of magnetic field along the solenoid which also affect the aluminium ring there will be an induced current flowing in the aluminium ring due to repulsion which tends to change the magnetic field back to normal By Lenz's law.the induced current flows in a direction such that it produces an effect to oppose the change.
so the end of the ring near the solenoid becomes a south pole.the aluminium ring will move away from the solenod under the action of the replusive force acting on it by the solenoid.