As kids most of us have played with magnets with great curiosity. When we bring close two opposite ends of magnets we can see that they attract each other but when we bring the same ends closer they repel each other. This phenomenon is used by modern technology and it has always puzzled people.