Objects with opposite chargers will attract each other, and objects with the same chargers will repel. Therefore:
If A is positive, B is negative (they attract)
If B is negative, C is positive (they attract)
If C is positive, D is positive (they repel)!
Hope this helps!!