Netflix Interview Question

General JS questions and a technical challenge