Duolingo interview question

Given some operations, identify the data structures