Replace with pi- wrong answer

I am getting wrong-answer for the test case
code: https://ide.codingblocks.com/s/77039