Rocketium interview question

Basic JS questions or DS based questions