According to the clock rule "When an observer, looking at the face of the coil, finds the current to be flowing in the anti-clockwise direction, then the face of the coil will behave like the North Pole. While if the current is in the clockwise direction, the face of the coil will behave like South Pole.
thank you