Write a program that takes a string and encode it that the amount of symbols would be represented by interger and the symbol.
Input : AAAABBBCCDAAA
Output : 4A3B2C1D2A
Input : PHP
Output : 1P1H1P
Input : CCoding
Output : 2C1o1d1i1n1g
Youtube Video: https://youtu.be/v6cs2pMw_18