Casimirs String Solitaire

Problem Name:
Casimirs String Solitaire
Site:CodeForces
Links:
Tags:
Problem setters: