Javascript Array Shift Method Javascript Interview Coding