Write a program to shift all zeroes to the right in an array.
Implement the operation in place and preserve the relative order of all nonzero elements. Return the modified array. The input is a list of integers with length from 1 through 1000.
def move_zeroes(nums):