BNY Interview Question

Arrays, data structures, Javascript, code in Javascript