Viber Interview Question

Efficiently sort a binary array (0,1)