Gett interview question

How to sort binary array