Netflix interview question

General JS questions and a technical challenge