I had quiz today in my IB CS course, and I had a question I could not understand, I will try to stated as closed as possible.

"There is an array of integers which holds an unknown amount of integers but it's not bigger than a 100.

if a = negative integers

b= non negative even integers

c= odd integers

There is a method which returns all of the non negative even integers. The method is already started below

nonNegative(int[] original){

missing code...

if(){

}

else(){

}"