Generate the maximum number using the digits in the array such that it is divisible by 2, 3 and 5