Espressif interview question

Sort array of 0 and 1s