https://www.codechef.com/viewsolution/33426509.
My this solution got accepted, but this do not took care of right to left precedence of ‘^’… try this : 1 5 a^b^c output should be abc^^. which is not.
I fixed it here but it is showing wrong answer.
https://www.codechef.com/viewsolution/33415558.
help.