GrowthSpace interview question

resolve JS code problem. explain a project i do