Here is a sequence of pixel colour data represented by their uppercase first letters:
Y Y Y Y Y Y R B B
Convert this sequence using a run-length encoding (RLE) algorithm.