Rock paper scissors problem

Question

Hints

Answer