Sequence full of colors

Problem Name:
Sequence full of colors
Site:HackerRank
Links:
Tags:
Problem setters: