Limits: 1s, 256 MB
Lily’s father lives in Canada. He comes once in a year. But she thinks everyday about her father. She wants to gift him a beautiful string. To make the string she puts an alphabet in a little box everyday! Her father arrived home yesterday. Now she wants to give the string as a gift to him. While taking the box she felt that, the box of the string became too much heavy for her. She can’t lift it from the ground now. Then she decided to replace every consecutive identical characters except the first occurrence of that character with ”#” which isn’t heavy at all. As she is a little girl, she doesn’t care about the case sensitiveness of the alphabets as the weight of the uppercase and lowercase of a character is same.
This is a companion discussion topic for the original entry at https://toph.co/p/heavy-alphabet