• + 1 comment

    i did so to find the largest element in the array created after calculating the desired no of elements for each element of the given array.