Paytm interview question

Sort an array of 0 and 1