Western Digital interview question

Data structures , Python and Puzzled