Google interview question

A coding question on arrays.