moveZeroes = (nums) => {
    let [ left, right ] = [ 0, 0 ];

    while (right < nums.length) {
        const canSwap = (nums[right] !== 0)
        if (canSwap) {
            [nums[left], nums[right]] = [nums[right], nums[left]];
            left++;
        }

        right++;
    }
}
2 Pointer
Time O(N) | Space O(1)
https://leetcode.com/problems/move-zeroes/
@param {number[]} nums
@return {void} Do not return anything, modify nums in-place instead.