Magnetic field is given by:
B=μ0ni2r
6.284×10−3=4π×10−7×n×12×0.1
n=2×6.284×10−44π×10−7
n=1000 turns.
Thus number of turns of coil is 1000.