Mygate Interview Question

Put all zero in array at the end?