Cisco Interview Question

Sort array with 0 1 2