Run-length compress a fill sequence
A stream of fill side markers like "BBBSS" (buy, buy, buy, sell, sell) is wordy. Compress it by replacing each run of identical characters with the character followed by the run length.
fills = "BBBSS"
-> "B3S2"
Return the run-length encoding of the string. Aim for .
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.