YNAB interview question

What are the differences between an array and a dictionary