Systems Logic interview question

set and list