Run-length encoding

Hard
0.0% Acceptance

Given a string sequence of a letters f.e. AAABCCXXXXXXY. Return run-length encoded string 3AB2C6XY.
Also make a decoder for that string.