On closing the switch S, the amount of charge flows from A to B is
5μC
2.5μC
1.25μC
zero
there will be no flow of charge as both of them are at the same potential V=QC