Given an unsorted array nums[] of positive numbers from 1..n use below operation as many time required to minimize the max value in the array
Return the max vakue in the array