BlueStone Interview Question

sort array having 0, 1, 2