The fact that letters may be repeated makes this problem a whole lot easier.
You only have two choices for letters - C or P. The probability of using either is 1/2.
Given that the probability for both C and P is 1/2, and there are three letters in the code, multiply the probabilities to find the probability of PCP.
Hope this helps!
-refrac532