Consider this C Program, C++ Program, Java Program or C# 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.
For this question, we define a blue number as any number that is divisible by 4, and a red number as any number whose last digit is 6.
Currently, processArray does not modify the array. You have to change this program so that any number in the array is replaced by -2 if it is a blue number, with -5 if it a red number, and with -3 if it is both, a blue and red number. To do this, you have to put your code inside processArray. Do not change anything else in the program.
For example, if these numbers were provided on the standard input: