Question d’entretien chez Huawei Technologies

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