Meta interview question

Coding exercise related to the data structure