Groupon interview question

interviewer want to use array