Write compress(s) that replaces runs of the same character with the character and the run length: "aaabcc" → "a3b1c2".
compress('aaabcc')
→ 'a3b1c2'compress('')
→ ''Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.