Morgan Stanley Interview Question

Which data structure is best to implement this?