Wipro Interview Question

Coding Question: reverse number [easy] array manipulation - decrease 1 from all elements. totally how many iterations are needed to make the whole array to zero. [intermediate level]