ITrust interview question

javascript question based on arrays