Leetcode Move Zeroes Javascript Format