Problem in PERMSUFF ?

Can someone explain what’s wrong with my code. I tried just everything and for whole contest I was with this problem.
Here’s my submission

//