MDP Infra (India) interview question

When to use Set vs List