What is the problem with my code?

Question link: https://www.codechef.com/LRNDSA02/problems/INPSTFIX
Submission Link: https://www.codechef.com/viewsolution/33906397
The test cases are easily done but on submission it shows wrong answer.Please help!.