Mygate interview question

Put all zero in array at the end?