Intel Corporation interview question

sort array of 3 colors