In a solenoid XY, a compass is brought near the solenoid with wire coiled around it. Find the direction of the current which will flow when the north pole of the compass is brought near the solenoid.
A) Clockwise
B) Anti-clockwise
C) Upwards
D) Downwards