Replace_them_all

problem link “https://hack.codingblocks.com/app/contests/2108/161/problem” and code link is “https://ide.codingblocks.com/s/418288
I got run error on my second test case