In the following circuit the switch S is closed at t = 0. The charge on the capacitor C as a function of time will be given by :

Using Kirchhoff's loop rule for series charging:
Integrating with initial condition :
Since the capacitors are connected in series, the same charge flows through both:
Tagged RC circuits: charging and discharging. Machine-assigned, so read it as a strong shortlist rather than a verdict.