If the direction of electric current in a solenoid, when viewed from one of its ends, is anticlockwise. The pole of this end of the solenoid is
north pole
The way to find out the polarity of a solenoid is:
Imagine the solenoid being held by the right hand. If the four fingers encircling the solenoid show the direction of current, the thumb indicates the north pole.
Here, the direction of current is same as that of encircling fingers. So, this end of the solenoid is north pole.