Find the max no that can be formed by any permutation of the arrangement -- Amazon