Duolingo Interview Question

Given some operations, identify the data structures