Given an array of colors(i.e. bead colors) and the length of the bracelet(i.e. the number of beads in it), make a bracelet such that no two consecutive beads will be of same color and no three consecutive beads will repeat in the bracelet. You can use any number of beads from any color from the given array of colors for beads.