var moveZeroes = function (nums) {
let slowIndex = 0;
for (let fastIndex = 0; fastIndex < nums.length; fastIndex++) {
if (nums[fastIndex] !== 0) {
let tempSlow = nums[slowIndex]
nums[slowIndex++] = nums[fastIndex]
nums[fastIndex] = tempSlow
}
}
};