How would you move all zeros in an array to the end while keeping the order of non-zero elements?
Implement the operation in place and return the modified array. The relative order of non-zero elements must remain unchanged, and the solution should use constant extra space.
def move_zeroes(nums):