Find the largest string satisfying following constraints

16 Views Asked by At

Let the three integers $n_1$, $n_2$, $n_3$ representing the maximum count of alphabets $a$, $b$, $c$ in a string. Find the maximum length string such no three consecutive alphabets are same in the resultant string