Moogsoft interview question

Screening: basic JS concepts. Pair Programming: Array methods.