Pregunta de entrevista de Salesforce

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