If you put magnets together and allow them to arrange themselves, how will the poles be aligned?

South to South

North to North

North to South

It doesn’t matter