Salesforce Interview Question

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