Initially the capacitor is uncharged , find the charge on capacitor as a function of time, if switch is closed at t=0.