Tiny Interview: Python Move Zeros

For this tiny interview, you are given a list of integers as an input. Return a list with the same elements where all zeros are at the end of the array. The provided function works but is very slow on larger inputs. Can you make it faster?
Want to conduct interviews on this platform?
Check out CoderPad : pick any interview question or create your own, then invite your candidate to a shared live-coding session on an IDE like this one. You even get 2 free interviews per month forever using this registration link!