SemanticBits interview question

Easy JS Question