AllofE Solutions interview question

Standard technical interview problems in JS