L3Harris interview question

What is the difference between an array and a set.