Groupon Interview Question

interviewer want to use array