IBM Interview Question

A coding question based on arrays.