Code: C - 3 groups of beads