Pergunta de entrevista da empresa Persistent Systems

To write code for greatest number formed by digits in a given array.