The above diagram is a basic Uninterupted Power Supply (UPS) circuit. This basic UPS circuit is a very simple and…