Introduction - If you have any usage issues, please Google them yourself
Figure A, the necklace, from 9 and 10 or 24 and the middle cut 25 beads, then we can collect up to 8 beads. Figure B necklace with white beads, white beads when faced with when both can be viewed as blue beads, the beads can also be viewed as red, when the demand by the decision to collect beads. Contains white beads from the necklace will be r, b and w to represent a string of characters. Please write a program to calculate from a necklace of beads to collect the number.