SHL Global interview question

Sort an array containing only 0s and 1s.