Explain me this problem
Consider this C Program or Java Program. It reads integers from the standard input (until it gets a negative number) and puts them into an array. After that it calls processArray on the array, and then prints the contents of the array on standard output. Currently, processArray does not modify the array. You have to change this program so that any sequence of two or more consecutive odd numbers in the array is replaced by a single integer that is the maximum of all the numbers in that sequence. The processArrayfunction/method should modify the array in-place (preferably without creating a new array), and it should return the new length of the modified array. For example, if these numbers were provided on the standard input: 1 3 33 62 122 63 65 39 662 9 -1 Then the program should print: 33 62 122 65 662 9 http://www2.rsphinx.com/site_media/misc/arrayproc.c http://www2.rsphinx.com/site_media/misc/ArrayProc.java