Altimetrik interview question

Basic design concepts, Coding in Javascript