Mobileye Interview Question

sort a number from 3 given digits (0,1,2)