Compress string by reducing repeated characters to character+count. Solved