HARMAN interview question

Coding question related to js, react and node