move all nonzero int to left end of an array and all zero int to right end