Pregunta de entrevista de Huawei Technologies

Write a program to convert all 1 in array left side and 0 right side.