Turing interview question

Asked a data Structure problem in Python