Salesforce interview question

Sort An array of "R","G","B" in one pass