Option (A) involves Priyanka notifying the landlord about not renewing the lease, which is not a violation of the lease agreement.
Option (B) describes Sharad failing to pay rent as agreed in the lease, which is a clear violation of the lease terms. This is the correct example.
Option (C) describes Uday listing complaints about the apartment, which does not violate the lease.
Option (D) involves Anna seeking legal advice but does not indicate a violation of the lease agreement.
Thus, the best example of violating an apartment lease is \( \text{(B)} \).