Please tell ehat is wrong in my sollutin https://ide.codingblocks.com/s/138600

hi kartik there is a small logical error
in line 15 u have write if again in this place u have to write else if because when the stack reversed after base case it will check the line 15 else again and if u write else if there then it will be not checked if first if is checked