Note sure if OP is still interested in this question... the answers above are good. Here is another view of it, if it didn't click for you.
The amount of ways of arranging A,A,B,B,C,C = 6!/(2!2!2!) = 90.
We want all the ways where no pair of letters are together, so we want to minus the amount...