Since, it is given that the current flows in the clockwise direction for an observer on the left side of the solenoid.
It means that the left face of the solenoid acts as South pole and right face acts as North pole. Inside a bar, the magnetic field lines are directed from South to North.
Therefore, the magnetic field lines are directed from left to right in the solenoid.
Magnetic moment of a single current carrying loop is given by, m' = IA.
So, magnetic moment of the whole solenoid is given by m = Nm' = N(IA)