Hint 1
First try placing the sticks from left to right in this order: green, red, yellow, blue. None of them should hit. Now try red, green, yellow, blue. This time, there should be one hit.
You now know that either the red or the green stick was correctly placed on the last try. Repeat this process of elimination until you find the correct order.

