Given an array nums, move all 0's to the end while maintaining the relative order of non-zero elements.
nums = array of integers
modified array with zeroes moved to end
Example 1:
Input:
nums = [0,1,0,3,12]
Output:
[1,3,12,0,0]
Explanation:
Non-zero elements moved front, zeros at end.