Expedia Group interview question

Sort R G B colors in O(1) etc.