IBM interview question

An array question and another array question