TeX source:
\max\{\,d(x,y):x\in {\mathcal {A}},\,y\in {\mathcal {B}}\,\}