spoj alphacode

in my code why recursion is not taking place?
what am i doing wrong?

//