Arcadia Data interview question

Javascript class structure