Pergunta de entrevista da empresa Restroworks

Q: Find a number from a array whose sum of digits is maximum.