Pergunta de entrevista da empresa Amazon

round 1 - sort an array containing only 0, 1 and 2 in one iteration.