Harbinger Group interview question

Technical question related to javascript