Move Zero To Right Leetcode Javascript Question