If there exists a number greater than the maximum element of the array that can be formed using the numbers of array
if ( $ i > $ arr [ $ n - 1 ] && $ table [ $ i ] == PHP_INT_MAX ) { $ ans = $ i ; break ; } } return $ ans ; }