Elbit Systems interview question

Sort array with 3 colors