uShip Interview Question

Array manipulation