String compression


one test case giving wrong ans

@lipikarustagi hey lipika
aaaaaaaaaaaaaaagggxsxssyyyyyoooooooooolllllwwqwdeddddddddkjjjoooooooooooooooooooo
your output is a154x1s1x1s2y5o106w2q1w1d1e1d8k1j3o20
but actual output is
a15g3x1s1x1s2y5o10l5w2q1w1d1e1d8k1j3o20