By passing the BAR exam and becoming a licensed attorney.
In the United States the suffix "Esq." is most commonly encountered in use among individuals licensed to practice law. This usage applies to both male and female lawyers. The term "Esquire" is assumed by the legal profession, and has not been awarded to it by any government or authority.
http://en.wikipedia.org/wiki/Esquire
I thought she was a dentist.