SpaceX Interview Question

Implementing data structures in javascript.