State Street interview question

List vs Set in Java