A free boundary problem associated with the isoperimetric inequality