Viber interview question

Efficiently sort a binary array (0,1)