Pristyn Care interview question

Sort array of 0,1,2 in single scan?