A python program to play the arrow logic puzzle and solve it