Pergunta de entrevista da empresa Expedia Group

Sorting array with elements 0's, 1's ans 2's.