XY#6Z1#4023 6Z # # 40 23 1 XY XYZZZZZZ1000023 Restore the original string by entering the compressed string with specified rule Original text 1 2 3 4 5 6 1 2 3 4 6 Z 4 0 w3resource.com