Pergunta de entrevista da empresa Meta

Find the maximum font size to render a text in a box without overflow (length and width given). Each character has a different width. Character width given by font size and always the same within a font size.