Priya has two bar magnets, A and B, with no pole marks. She places magnet A on some round pencils. She brings one end of magnet B near the right end of magnet A, without touching it. Magnet A rolls away from B.

Priya now turns magnet B around and brings its other end near the same right end of magnet A. What will magnet A do?
