Function to find the minimum number which have maximum length
static String max_number ( int arr [ ] , int sum ) { int frac [ ] = new int [ 9 ] ; int maxi = Integer . MIN_VALUE ; StringBuilder ans = new StringBuilder ( ) ; int pos = 0 ;