Cisco interview question

Sort array with 0 1 2