Ideas2IT interview question

puzzle and arrays