Mahisoft interview question

Given a string ABBBCDEF return the compressed string e.g. A3BCDEF

Interview Answer

Anonymous

12 Oct 2020

I used a dictionary on C# to store every letter ocurrences and then with string builder return the result.