Adding Array Items Javascript Interview Question