A battery is of emf E is being charged from a charger such that positive terminal of the battery is connected to terminal A of charger and negative terminal of the battery is connected to terminal B of charger. The internal resistance of the battery is r.