Antibiotics are a class of medications used to treat bacterial infections. They work by killing or inhibiting the growth of…