Gett Interview Question

How to sort binary array