Staples interview question

Just basic data structure question