Pergunta de entrevista da empresa Meta

Find the maximum number that can be constructed from a string of digits.