As the switch is pressed, the magnet will get repelled. The reason is that at the face of solenoid near the north pole of magnet, the current flows in anti-clockwise direction, so the face becomes north pole. The like poles repel, so the magnet is repelled.