Rosetta Problems

Yet Another RGB Sequence

https://atcoder.jp/contests/abc266/tasks/abc266_g