L4 Digital Interview Question

Various array manipulation problems in JS