Pregunta de entrevista de Mygate

Put all zero in array at the end?