Logiology interview question

They asked coding questions from arrays.