Capgemini interview question

About python sets and lists