Replacing a capacitor is a simple job ... Since the condenser is the portion of your air conditioner that is outside and exposed to the weather, dirt and debris can easily become stuck inside ...
It could be damaged or have wiring problems. Cooling problems are often the result of a faulty air conditioner contactor or capacitor. If in doubt, consider replacing these components first.