Pregunta de entrevista de Infosys

Sort an array containing elements from the set (0,1,2)