SpaceX interview question

Implementing data structures in javascript.