IBM Interview Question

An array question and another array question